<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html>
<html xmlns:tal="http://xml.zope.org/namespaces/tal" xmlns:metal="http://xml.zope.org/namespaces/metal"
      xmlns="http://www.w3.org/1999/xhtml">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
	<title>Kateglo - Entri</title>
	<meta metal:use-macro="${appPath}/default/views/macros/head.html/head"/>
</head>
<body tal:define="headerNav string: " metal:use-macro="${appPath}/default/views/macros/body.html/body">
<tal:block metal:fill-slot="content">
	<div class="w940">
		<tal:block metal:use-macro="${appPath}/default/views/macros/header.html/header"/>
		<content>
			<div class="content" style="max-width: 760px;">
				<h1>${entry/entry}</h1>
				<nav>
					<a class="on">Definisi</a>
					<a href="/entri/${php: urlencode(entry.entry)}/tesaurus">Tesaurus</a>
					<a href="/entri/${php: urlencode(entry.entry)}/padanan">Padanan</a>
					<a href="/entri/${php: urlencode(entry.entry)}/sumber">Sumber</a>
					<!--a href="#">Korpus</a> <a href="#">Diskusi (3)</a> <a href="#">share</a -->
					<br/>
				</nav>
				<tal:block
						tal:condition="php: ( is_array(entry.meanings) && count(entry.meanings) > 0 )">
					<tal:block tal:repeat="meaning entry/meanings">
						<dl>
							<dt tal:condition="php: (( is_array(meaning.syllabels) && count(meaning.syllabels) > 0 ) || ( count(entry.meanings) > 1))">
								<tal:block
										tal:condition="php: ( is_array(meaning.syllabels) && count(meaning.syllabels) > 0 )">
									<tal:block tal:repeat="syllabel meaning/syllabels">
										<strong>${syllabel/syllabel}</strong>&nbsp;
										<tal:block
												tal:condition="php: ( is_array(syllabel.pronounciations) && count(syllabel.pronounciations) > 0 )">
											<tal:block tal:repeat="pronounciation syllabel/pronounciations">
												${pronounciation/pronounciation}&nbsp;
											</tal:block>
										</tal:block>
									</tal:block>
								</tal:block>
								<tal:block tal:condition="php: ( count(entry.meanings) > 1)">
									<sup>${repeat/meaning/number}</sup>
								</tal:block>
							</dt>
							<tal:block
									tal:condition="php: ( is_array(meaning.types) && count(meaning.types) > 0 )">
								<dt>
									<tal:block tal:repeat="type meaning/types">
										${type/type}&nbsp;
										<tal:block tal:condition="php: is_object(type.category)">
											(${type/category/category})
										</tal:block>
									</tal:block>
								</dt>
							</tal:block>
							<tal:block
									tal:condition="php: (is_array(meaning.classes) && count(meaning.classes) > 0 )">
								<tal:block tal:repeat="class meaning/classes">
									<tal:block tal:condition="exists: class/class">
										<dt class="class">
											<strong>
												<em>
													${class/class/class}&nbsp;
													<tal:block
															tal:condition="php: is_object(class.class.category)">
														(${class/class/category/category})
													</tal:block>
												</em>
											</strong>
										</dt>
									</tal:block>
									<tal:block
											tal:condition="php: (is_array(class.definitions) && count(class.definitions) > 0 )">
										<dd>
											<ol start="${php: class.definitions[0].index}">
												<li tal:repeat="definition class/definitions">
													<tal:block
															tal:condition="php: ( is_array(definition.disciplines) && count(definition.disciplines) > 0 )">
														<em>(
															<tal:block
																	tal:repeat="discipline definition/disciplines">
																${discipline/discipline}&nbsp;
															</tal:block>
															)</em>
													</tal:block>
													${definition/definition}
													<tal:block
															tal:condition="php: ( is_array(definition.samples) && count(definition.samples) > 0 )">
														<p tal:repeat="sample definition/samples">
															<em>${sample/sample}</em>
														</p>
													</tal:block>
												</li>
											</ol>
										</dd>
									</tal:block>
								</tal:block>
							</tal:block>
						</dl>
						<tal:block
								tal:condition="php: ( is_array(meaning.synonyms) && count(meaning.synonyms) > 0 )">
							<dl>
								<dt>
								<h3>Sinonim <a class="more"
								               href="/entri/${php: urlencode(entry.entry)}/tesaurus#sinonim">selengkapnya &raquo;</a>
								</h3>
								</dt>
								<dd>
									<ul>
										<tal:block tal:repeat="synonym meaning/synonyms">
											<tal:block tal:define="text synonym/meaning/entry/entry">
												<li tal:condition="not: repeat/synonym/end">
													<a href="/entri/${php: urlencode(text)}">${text}</a>
												</li>
												<li class="end" tal:condition="repeat/synonym/end">
													<a href="/entri/${php: urlencode(text)}">${text}</a>
												</li>
											</tal:block>
										</tal:block>
									</ul>
								</dd>
							</dl>
						</tal:block>
						<tal:block
								tal:condition="php: ( is_array(meaning.antonyms) && count(meaning.antonyms) > 0 )">
							<dl>
								<dt>
								<h3>Antonim <a class="more"
								               href="/entri/${php: urlencode(entry.entry)}/tesaurus#antonim">selengkapnya &raquo;</a>
								</h3>
								</dt>
								<dd>
									<ul>
										<tal:block tal:repeat="antonym meaning/antonyms">
											<tal:block tal:define="text antonym/meaning/entry/entry">
												<li tal:condition="not: repeat/antonym/end">
													<a href="/entri/${php: urlencode(text)}">${text}</a>
												</li>
												<li class="end" tal:condition="repeat/antonym/end">
													<a href="/entri/${php: urlencode(text)}">${text}</a>
												</li>
											</tal:block>
										</tal:block>
									</ul>
								</dd>
							</dl>
						</tal:block>
						<tal:block
								tal:condition="php: ( is_array(meaning.relations) && count(meaning.relations) > 0 )">
							<dl>
								<dt>
								<h3>Relasi <a class="more" href="/entri/${php: urlencode(entry.entry)}/tesaurus#relasi">selengkapnya &raquo;</a>
								</h3>
								</dt>
								<dd>
									<ul>
										<tal:block tal:repeat="relation meaning/relations">
											<tal:block tal:define="text relation/meaning/entry/entry">
												<li tal:condition="not: repeat/relation/end">
													<a href="/entri/${php: urlencode(text)}">${text}</a>
												</li>
												<li class="end" tal:condition="repeat/relation/end">
													<a href="/entri/${php: urlencode(text)}">${text}</a>
												</li>
											</tal:block>
										</tal:block>
									</ul>
								</dd>
							</dl>
						</tal:block>
					</tal:block>
				</tal:block>
			</div>
		</content>

	</div>
</tal:block>
</body>
</html>